/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shanhesoft.java.common.persistence.domain.IdEntity;
import com.shanhesoft.java.common.persistence.domain.TreeEntity;

import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 题库管理Entity 题库管理
 * @author admin
 * @version 2020-09-17 18:43:07
 */
@TableName(value = "t_question_bank")
@Data @ToString @NoArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TQuestionBank extends TreeEntity<TQuestionBank> {

	private static final long serialVersionUID = 1L;
	/** F_NAME name  :  题库(章节)名称 */
	public static final String F_NAME = "name";
	/** F_PARENTID parent_id  :  父id */
	public static final String F_PARENTID = "parentId";
	/** F_PARENTIDS parent_ids  :  关键字 */
	public static final String F_PARENTIDS = "parentIds";
	/** F_LEVEL level  :  层级 */
	public static final String F_LEVEL = "level";
	/** F_SYSTEMED systemed  :  是否系统题库 */
	public static final String F_SYSTEMED = "systemed";
	/** F_SORT sort  :  排序 */
	public static final String F_SORT = "sort";


	/** name 题库(章节)名称 */@NotBlank @Size(max=20)
	@TableField("name")
	private String name;
	/** parentId 父id */@NotNull
	@TableField("parent_id")
	private String parentId;
	/** parentIds 关键字 */ @Size(max=500)
	@TableField("parent_ids")
	private String parentIds;
	/** level 层级 */
	private Long level;
	/** systemed 是否系统题库 */@NotNull

	private Long systemed;
	/** sort 排序 */

	private Integer sort;


	@Override
    public boolean equals(Object o) {
        return super.equals(o);
    }
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
